/*
 * 
 * Libman
 * 
 * Daniel Kaufmann, Martin Lang, Simon Moosbrugger,
 * Stefan Mayer, Stephan Halbeisen
 * 
 */
package model;

/**
 * The Role Group.
 */
public class User implements java.io.Serializable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -1864658793756049828L;
	
	/** The id. */
	private int id;
	
	/** The username. */
	private String username;
	
	private Role role;
	
	private Client client;

	/**
	 * Instantiates a new group.
	 */
	public User() {
	}

	/**
	 * Instantiates a new group.
	 * 
	 * @param username
	 *            the username
	 */
	public User(String username, Role role) {
		this.username = username;
		this.setRole(role);
	}

	/**
	 * Gets the id.
	 * 
	 * @return the id
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 * Sets the id.
	 * 
	 * @param id
	 *            the new id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * Gets the username.
	 * 
	 * @return the username
	 */
	public String getUsername() {
		return this.username;
	}

	/**
	 * Sets the username.
	 * 
	 * @param username
	 *            the new username
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Role getRole() {
		return role;
	}
	
	public void setClient(Client client){
		this.client = client;
	}
	
	public Client getClient(){
		return client;
	}
}
